package com.s20y.register.config.es.model;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import lombok.Data;

@Data
@Document(indexName = "user")
public class User {
	@Id
	private Integer id;
	@Field(type = FieldType.Text, analyzer = "ik_max_word")
	private String name;
	@Field(type = FieldType.Text, analyzer = "ik_max_word")
	private String screenName;
	@Field
	private String email;
	@Field
	private String url;
	@Field(type = FieldType.Text, analyzer = "ik_max_word")
	private String summary;
}
